.profile-container {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  max-width: 100%;
  min-height: 100vh;
  background-color: #f5f5f5;
  color: #333;
}

.header {
  position: sticky;
  top: 0;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.back-button {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 8px;
  margin-right: 15px;
}

.title {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: #333;
}

.content-card {
  max-width: 600px;
  margin: 30px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.avatar-section {
  text-align: center;
  padding: 20px 0;
}

.avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 15px;
  overflow: hidden;
  background-color: #f0f0f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e0e0e0;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-avatar {
  font-size: 120px;
  color: #ccc;
}

.avatar-hint {
  font-size: 14px;
  color: #888;
  margin: 0;
}

.file-input {
  display: none;
}

.nickname-section {
  margin: 30px 0 40px;
}

.input-label {
  display: block;
  font-size: 16px;
  color: #555;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.nickname-input {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.nickname-input:focus {
  border-color: #4a90e2;
  outline: none;
}

.char-count {
  position: absolute;
  right: 15px;
  bottom: -22px;
  font-size: 12px;
  color: #999;
}

.char-count.error {
  color: #ff4d4f;
}

.save-button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  color: #fff;
  background-color: #4a90e2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.save-button:hover {
  background-color: #3a7bc8;
}

.save-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.cropper-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.cropper-container {
  width: 90%;
  max-width: 500px;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.cropper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.cropper-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.close-button {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 5px;
}

.cropper-content {
  padding: 20px;
}

.cropper-preview {
  width: 100%;
  height: 300px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cropper-preview img {
  max-width: 100%;
  max-height: 100%;
}

.cropper-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.cancel-button,
.confirm-button {
  padding: 8px 20px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.cancel-button {
  background-color: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

.cancel-button:hover {
  background-color: #eee;
}

.confirm-button {
  background-color: #4a90e2;
  color: #fff;
  border: none;
}

.confirm-button:hover {
  background-color: #3a7bc8;
}

.nickname-input::placeholder {
  color: #888;
  /* 提示文本颜色 */
  font-style: italic;
  /* 提示文本样式 */
}